from Base import message, intersect, SS_VALID
from DRG import MDCD_DRG

def group(record):
  adrg_zd = []
  adrg_zd1 = []
  adrg_ss = ["30.4x00x002","40.3x00x005","40.4000","40.4000x003","40.4100","40.4200","40.5900x011"]
  adrg_ss1 = []
  dept_list = []

  if True and record.ssList and record.ssList[0] in adrg_ss:
    message('符合DC3入组条件，匹配规则：主手术匹配')

    if MDCD_DRG.DC39_group(record):
      return 'DC39'
        
    return 'DC3'
  else:
    return ''
    
